using Microsoft.Xna.Framework;
using Trippy;
using Trippy.CollidableGameComponents;
using Trippy.CollidableGameComponents.Agents;
using Trippy.CollidableGameComponents.Objects;
using Trippy.Levels;

public class FallingWoodBox : WoodBox
{
    public FallingWoodBox(Level level)
        : base(level)
    {
    }

    protected override void CollisionHandler(CollidableGameComponent component, CollisionSide side)
    {
        if (side == CollisionSide.Top && component is Hero)
        {
            Acceleration = TrippyConstants.World.Gravity;
        }
        base.CollisionHandler(component, side);
    }


}